﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OrderCancel.aspx.cs" Inherits="WebSite.admin.order.OrderCancel" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head2" runat="server">
    <title>福利点点通 </title>
    <link href="../css/skin.css" rel="stylesheet" type="text/css" />
     <script src="../js/common.js" type="text/javascript"></script>
</head>
<body>
    <form id="form2" runat="server">
     <ext:PageManager ID="PageManager1" runat="server" />
      <ext:SimpleForm ID="extForm1" runat="server" BodyPadding="5px"   
            EnableBackgroundColor="false" Title="取消订单"  ShowHeader="true" >
              <Items>
               <ext:Panel ID="Panel2" ShowHeader="false"  CssClass="x-form-item" ShowBorder="false" Layout="Column" runat="server">
             <Items>
                   <ext:Label ID="lblGoodsType"   runat="server" Width="70px" Text="&nbsp;&nbsp;订单号："></ext:Label>
                   <ext:TextBox runat="server" ID="txtOrderCode"   MaxLength="100" Label="订单号" ></ext:TextBox>
                   <ext:Button ID="btnSearch" Text="搜索"  CssClass="mleft mright" runat="server"  OnClick="btnSearch_Click"></ext:Button>
                </Items>
         </ext:Panel>
     </Items>
     
   </ext:SimpleForm>

         <ext:Grid ID="Grid1" Title="查询结果" PageSize="50" ShowBorder="false"  CssClass="x-form-item"  Height="450px"  AllowPaging="true" 
                        OnPageIndexChange="Grid1_PageIndexChange" ShowHeader="False" runat="server" EnableCheckBoxSelect="false"   AllowSorting="true"    IsDatabasePaging="true" 
                        DataKeyNames="orderid" OnSort="Grid1_Sort" EnableRowNumber="True" OnRowCommand="Grid1_RowCommand">
        <Columns>
                  <ext:TemplateField Width="120px" SortField="" HeaderText="订单号">
                <ItemTemplate>
                      <a href="#" onclick="openNewTab('OrderDetail','/admin/order/orders.aspx?oid=<%# Eval("orderid") %>','订单查看')",  title="订单查看"><%# Eval("orderCode") %></a>
                </ItemTemplate>
            </ext:TemplateField>
            <ext:BoundField Width="200px" ColumnID="pay" SortField="pay" DataField="pay" DataFormatString="{0}"
                HeaderText="付款方式" />
            <ext:BoundField Width="100px" ColumnID="sumPoints" SortField="sumPoints" DataField="sumPoints" DataFormatString="{0}"
                HeaderText="总福点数" />
            <ext:BoundField Width="80px" DataField="ordertime" SortField="ordertime" DataFormatString="{0:yy-MM-dd}"
                HeaderText="下单时间" />
            <ext:BoundField Width="100px" DataField="senddate" SortField="senddate" DataFormatString="{0:yy-MM-dd}"
                HeaderText="送货时间" />
            <ext:BoundField Width="100px" ColumnID="states" SortField="states" DataField="statesName" DataFormatString="{0}"
                HeaderText="订单状态" />
            <ext:BoundField Width="140px" ColumnID="SendCompany" SortField="SendCompany" DataField="SendCompany" DataFormatString="{0}"
                HeaderText="物流公司" />
            <ext:BoundField Width="100px" ColumnID="SendCode" SortField="SendCode" DataField="SendCode" DataFormatString="{0}"
                HeaderText="物流单号" />
             <ext:LinkButtonField HeaderText="操作" Width="60px" ConfirmText="你确定要取消该订单吗？" ConfirmTarget="Top"
                CommandName="deleted" Text="[取消]" />
        </Columns>
    </ext:Grid>
    </form>
</body>
</html>
